package net.kangyee.eventmanager.commands;

import org.bukkit.entity.Player;

import net.kangyee.eventmanager.EventManager;
import net.kangyee.eventmanager.util.MessageManager;

public class CmdReload extends EventManagerCommand {
	
	private EventManager plugin;
	
	public CmdReload(EventManager plugin){
		this.plugin = plugin;
	}

	public void onCommand(Player player, String[] args){
		plugin.init();
		MessageManager.sendPNormalMessage(player, "插件重载完成");
		return;
	}

	public String getCmdName(){
		return "reload";
	}

	public String getArgs(){
		return "";
	}
	
	public int getMaxArgs(){
		return 1;
	}

	public int getMinArgs(){
		return 1;
	}

	public String getPermission(){
		return "eventmanager.admin." + getCmdName();
	}

	public boolean getStateRequire(){
		return false;
	}
	
	public boolean getRegPCRequire() {
		return false;
	}
}
